import { Tools } from 'weaver-mobile';
import { catchApiError } from '../util/index';

// 基本信息
export const getBaseData = (params) => {
  let options = {
    method: 'POST',
    url: '/api/sms/base/getBaseData',
    params: {...params}
  };
  return Tools.callApi(options).then(catchApiError);
}

// 发送信息
export const sendSms = (params) => {
  let options = {
    method: 'POST',
    url: '/api/sms/base/sendSms',
    params: {...params}
  };
  return Tools.callApi(options).then(catchApiError);
}